package com.example.tests;

import org.testng.annotations.Test;

public class ContactCreationTests extends TestBase {

  @Test
  public void testNonEmptyContactCreation() throws Exception {
	openMainPage(); 
    initContactCreation();
    ContactData contact = new ContactData();
    contact.firstName = "First name1";
    contact.lastName = "Last name1";
    contact.address = "Street1 111\n1111 AA Plaats1";
    contact.homePhone = "0111-111111";
    contact.mobPhone = "0611111111";
    contact.workPhone = "0222-222222";
    contact.email1 = "test1@test.nl";
    contact.email2 = "test2@test.nl";
    contact.birthDay = "1";
    contact.birthMonth = "January";
    contact.birthYear = "1971";
    contact.groupName = "Group 1";
    contact.address2 = "Street2 222\n2222 BB Plaats2";
    contact.homePhone2 = "222-222222";
    fillContactForm(contact);
    submitContactCreation();
    returnToMainPage();
  }

  @Test
  public void testEmptyContactCreation() throws Exception {
	openMainPage(); 
    initContactCreation();
    fillContactForm(new ContactData("", "", "", "", "", "", "", "", "", "", "", "", "", ""));
    submitContactCreation();
    returnToMainPage();
  }
}
